{include file='default/base/mall_top'/}
<link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home.css">
<div class="header-login clearfix">
    <div class="w1200">
        <div class="logo">
            <a href="{$Think.HOME_SITE_URL}"><img src="{$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_COMMON}/{$Think.config.ds_config.site_logo}"/></a>
        </div>
    </div>
</div>
<div class="page_register clearfix">
     <div class="w1200">
        <div class="r_icon1"></div>
        <div class="r_icon2"></div>
        <div class="r_icon3"></div>
        <div class="r_icon4"></div>
        <div class="r_icon5"></div>
        <form method="post" id="post_form" action="{:url('Connectsms/find_password')}">
            <div class="register_form">
                <div class="mt">{$Think.lang.login_retrieve_password}</div>
                <div class="item clearfix">
                    <div class="label">{$Think.lang.login_mobile_phone}</div>
                    <div class="item-text">
                        <input type="text" id="sms_mobile" name="sms_mobile" class="text" tabindex="1" placeholder="{$Think.lang.login_registered_phone_number}" maxlength="11" />
                    </div>
                </div>
                <div class="item clearfix">
                    <div class="label">{$Think.lang.login_mobile_verification_code}</div>
                    <div class="item-text">
                        <input type="text" id="sms_captcha" name="sms_captcha" class="text" tabindex="1" placeholder="{$Think.lang.login_enter_verification_code}" maxlength="6" style="width:120px;" />
                        <a class="send_code" id="btn_sms_captcha" ds_type="3">{$Think.lang.login_get_verification_code}</a>
                    </div>
                </div>
                <div class="item clearfix">
                    <div class="label">{$Think.lang.login_set_password}</div>
                    <div class="item-text">
                        <input type="password" id="member_password" name="member_password" class="text" tabindex="1" placeholder="{$Think.lang.login_modified_password}"  />
                    </div>
                </div>
                <div class="item">
                    <input type="submit" class="btn login-btn" value="{$Think.lang.login_confirm_reset}" />
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="{$Think.HOME_SITE_ROOT}/js/connect_sms.js"></script> 
<script>
                            $(function () {
                                $("#post_form").validate({
                                    errorPlacement: function (error, element) {
                                        var error_td = element.parent('.item-text');
                                        error_td.append(error);
                                        element.parents('.item:first').addClass('error');
                                    },
                                    success: function (label) {
                                        label.parents('.item:first').removeClass('error').find('label').remove();
                                    },
                                    submitHandler: function (form) {
                                        ds_ajaxpost('post_form','url',"{:url('Member/index')}");
                                    },
                                    rules: {
                                        sms_mobile: {
                                            required: true,
                                            rangelength : [11, 11],
                                            digits: true
                                        },
                                        sms_captcha: {
                                            required: true,
                                            minlength: 6
                                        },
                                        member_password: {
                                            required: true,
                                            minlength: 6,
                                            maxlength: 20
                                        }
                                    },
                                    messages: {
                                        sms_mobile: {
                                            required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_correct_phone}',
                                            rangelength: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_correct_phone}',
                                            digits: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_correct_phone}'
                                        },
                                        sms_captcha: {
                                            required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_sms_dynamic_code}',
                                            minlength: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_sms_dynamic_code}'
                                        },
                                        member_password: {
                                            required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_register_input_password}',
                                            minlength: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_register_password_range}',
                                            maxlength: '<i class="iconfont">&#xe64c;</i>{$Think.lang.login_register_password_range}'
                                        }
                                    }
                                });
                            });
</script>



{include file='default/base/mall_footer'/}